package cn.com.vastbase.hibernate.sample.springmvc.business.dao;

import cn.com.vastbase.hibernate.sample.springmvc.basic.BaseDAOImpl;
import cn.com.vastbase.hibernate.sample.springmvc.business.entity.Person;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class PersonDAOImpl extends BaseDAOImpl implements IPersonDAO {

    @SuppressWarnings("unchecked")
    @Override
    public List<Person> list() {
        return (List<Person>) find("from Person");
    }
}
